package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.ShiftDao;
import com.infoauto.opc.gateway.model.gtm4.Shift;
import com.infoauto.opc.gateway.service.ShiftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 班次基础数据
 */
@Service
public class ShiftServiceImpl implements ShiftService {
    @Autowired
    private ShiftDao dao;

    @Override
    public int insert(Shift shift) {
        return dao.insert(shift);
    }

    @Override
    public int update(Shift shift) {
        return dao.update(shift);
    }

    @Override
    public Shift selectByPtAndShift(String productionTime, Integer shift) {
        return dao.selectByPtAndShift(productionTime,shift);
    }

    @Override
    public Shift selectByProductionTime(String productionTime) {
        return dao.selectByProductionTime(productionTime);
    }
}
